package com.market.controller;

import com.market.common.vo.ResponseResult;
import com.market.entity.TakeStock;
import com.market.service.TakeStockService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/takestock")
public class TakeStockContorller {
    @Resource
    TakeStockService takeStockService;
    @GetMapping("/getTakeStock")
    public ResponseResult<List<TakeStock>> getTakeStock(){
        return ResponseResult.success(takeStockService.findTakeStock());
    }
}
